from django.db import models

# Create your models here.
class Users(models.Model):
    name=models.CharField(max_length=32)
    password=models.CharField(max_length=225)

    class Meta:
        db_table='users'



class Order(models.Model):
    title=models.CharField(max_length=32)
    price=models.DecimalField(max_digits=8,decimal_places=2)
    member=models.IntegerField(default=0)
    name=models.CharField(max_length=32)
    phone=models.CharField(max_length=11)

    class Meta:
        db_table='order'


class Product(models.Model):
    title=models.CharField(max_length=225)
    img=models.ImageField(upload_to='img')
    price = models.DecimalField(max_digits=8, decimal_places=2)

    class Meta:
        db_table='product'
